<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <ul class="layui-nav layui-nav-tree site-demo-nav">
            <li class="layui-nav-item <php>if(CONTROLLER_NAME == 'Home'){ echo 'layui-nav-itemed';}</php>">
                <a class="javascript:;" href="javascript:;">首页<span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <dd class="<php>if(ACTION_NAME=='form'){echo 'layui-this';}</php>">
                        <a href="<{:U('Home/form')}>">调试页</a>
                    </dd>
                    <dd class="<php>if(ACTION_NAME=='index'){echo 'layui-this';}</php>">
                        <a href="<{:U('Home/index')}>">首页</a>
                    </dd>
                </dl>
            </li>
            <if condition="session('admin.type') eq 1">
                <li class="layui-nav-item <php>if(CONTROLLER_NAME == 'Admin' && ACTION_NAME=='index'){ echo 'layui-this';}</php>"><a href="<{:U('Admin/index')}>">管理员列表</a></li>
            <elseif condition="session('admin.type') eq 2"/>

            <elseif condition="session('admin.type') eq 3"/>

            </if>
        </ul>
    </div>
</div>